import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/pages/Home'
import Find from '@/components/pages/Find'
import Order from '@/components/pages/Order'
import Mine from '@/components/pages/Mine'
import Info from '@/components/pages/Info'
import Sercher from "@/components/pages/Sercher"
import Login from "@/components/pages/login"

Vue.use(Router)

const routes = [
  {
    path: '/',
    component: Home
  },
  { 
    name:'order',
    path: '/order',
    component: Order
  },
  {
    name:'find',
    path: '/find',
    component: Find
  },
  {
    name:'mine',
    path: '/mine',
    component: Mine
  },
  {
    name:'info',
    path: '/info/:id',
    component: Info
  },
  {
    name:'sercher',
    path: '/sercher',
    component: Sercher
  },
  {
    name:'login',
    path: '/login',
    component: Login
  }
]

export default new Router({
  routes
})